       <div class="main layui-clear">
            <div class="wrap">
                <div class="content" style="margin-right:0">
                    <div class="fly-tab">
               <span>
                    <a class="tab-this" href="{:U('home/index/jie')}">
                        全部
                    </a>
                    <a href="{:U('home/index/unsolved')}">
                        未结帖
                    </a>
                    <a href="{:U('home/index/solved')}">
                        已采纳
                    </a>
                    <a href="{:U('home/index/wonderful')}">
                        精帖
                    </a>
                    <?php if (!empty($_SESSION['uid'])) { ?>
                        <a href="{:U('home/usercore/u')}/id/<?php  echo $_SESSION['uid']?>">我的帖</a>
                   <?php  } ?>
                </span>
                        <form action="http://cn.bing.com/search" class="fly-search">
                            <i class="iconfont icon-sousuo">
                            </i>
                            <input class="layui-input" autocomplete="off" placeholder="搜索内容，回车跳转"
                            type="text" name="q">
                        </form>
                        <a href="/jie/add/" class="layui-btn jie-add">
                            发布问题
                        </a>
                    </div>
                          <?php  foreach ($res as $v) { ?>
                <ul class="fly-list">
                    <li class="fly-list-li">
                        <a href=
                            "{:U('home/que/index','','')}/id/<?php echo $v['id']; ?>"
                         class="fly-list-avatar">
                            <img src="__ROOT__/<?php echo $v['face'] ?>" alt="<?php echo $v['nikename'] ?>">
                        </a>
                        <h2 class="fly-tip">
                            <a href="{:U('home/que/index','','')}/id/<?php echo $v['id']; ?>">
                                <?php echo $v['title'] ?>
                            </a>
                            <?php if ($v['top']!='普通' || $v['jing']!='普通'){ ?>
                                <?php if ($v['jing']=='精华' && $v['top']=='置顶'){ ?>
                                     <span class="fly-tip-stick">置顶帖</span>
                                    <span class="fly-tip-jing">精帖</span> 
                                <?php }else if($v['jing']=='精华'){ ?>
                                    <span class="fly-tip-jing">精帖</span>
                                    <?php }?>
                                   
     
                            <?php } ?>
                
                        </h2>
                        <p>
                            <span>
                                <a href="/u/336">
                                     <?php echo $v['nikename'] ?>
                                </a>
                            </span>
                            <span>
                                <?php echo $v['create_time'] ?>
                            </span>
                            <span>
                                <?php echo $v['技术闲谈'] ?>
                            </span>
                            <span class="fly-list-hint">
                                <i class="iconfont" title="回答">
                                    
                                </i>
                                <?php echo $v['answer_num'] ?>
                                <i class="iconfont" title="人气">
                                    
                                </i>
                                <?php echo $v['view_num'] ?>
                            </span>
                        </p>
                    </li>
                </ul>
            <?php }?>
             <style type="text/css">
                .current{
                     background-color: #009E94;
                    color: #fff;
                    padding: 0 20px;
                    line-height: 36px;
                    border: 1px solid #009E94;
                    font-size: 14px;
                    display: inline-block;
                    vertical-align: top;
                }
                .num,.next,.prev{
                    padding: 0 20px;
                    line-height: 36px;
                    border: 1px solid #009E94;
                    font-size: 14px;
                    display: inline-block;
                    vertical-align: top;
                }
                .num{
                    border-right: none;
                }
                .next{
                    margin-left: -5px;
                }
        </style>

           <div style="text-align: center;padding-top:20px;">
            <?php if (!isset($_GET['p']) || $_GET['p']=='1' ){ ?>
                <div class="laypage-main">
                    <a href="{:U(ACTION_NAME,array('p'=>2))}" class="laypage-next">
                        更多求解
                    </a>
                </div>
            <?php }else if(!empty($show)){ 
              echo $show; 
              }else{
                echo "没有更多问题，请返来上一页";
                } ?>
                
            </div>
                </div>
                <!-- layer-728*90 -->
                <div class="fly-ad" style="height:90px; border:1px solid #DFDFDF; overflow: hidden; text-align: center;">
                    <script type="text/javascript">
                        /*728*90*/
                        var cpro_id = "u2482674";
                    </script>
                    <script src="http://cpro.baidustatic.com/cpro/ui/c.js" type="text/javascript">
                    </script>
                </div>
            </div>
        </div>

      